package com.wavehi.aspectj;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author WaveHi
 * @Date 18/10/2021 下午 2:17
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@Aspect
@Component
@Order(value = 1)
public class EnhancerPriorityDemo {

    @Before(value = "execution(* com.wavehi.aspectj.Operation02.add(..))")
    public void before() {
        System.out.println("Priority before!");
    }
}
